#!/bin/sh
# 安装 java
./install-java.sh
# 安装 git 工具
if ! command -v git >/dev/null 2>&1; then
    echo "git 未安装正在尝试安装"
    apt-get update
    apt-get install -y git
fi
git clone -b ubuntu https://gitcode.com/heqiao_linux/make_ffmpeg.git ./ubuntu
# 判断克隆是否成功
if [ $? -ne 0 ]; then
    echo "git clone 失败"
    exit 1
fi
cd ubuntu
# ./build.sh

